# -*- codeing = utf-8 -*-
# @Time : 2022/7/17 20:43
# @Author : ZN
# @Email : 747723508@qq.com
# @File ； serializers.py
# @Software: PyCharm
from  rest_framework import serializers
class StudentSerializers(serializers.Serializer):
    id = serializers.IntegerField(label='ID',read_only=True)
    name =serializers.CharField(label='姓名',max_length=30)
    age = serializers.IntegerField(label='年龄',required=False)
    sex = serializers.IntegerField(label='性别',required=False)
    create_time = serializers.DateTimeField(label='修改时间')
    update_time = serializers.DateTimeField(label='更新时间')
    is_delete= serializers.BooleanField(label='逻辑删除')